package util;

public class PageUtil {

	  private int currentPage;
	  
	  private int pageSize=5;
	  
	  public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getTotalPage() {
		return  totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	private int totalCount;
	  
	  private  int totalPage;
	  
	
}
